﻿mainModule.factory("userRoleSvc", ["$http", "BaseApiSvc", function ($http, BaseApiSvc) {
    "use strict";
    var url = 'http://localhost:51924/api/admin/users/{id}/roles/';
    var ChildSvc = function () {
        BaseApiSvc.call(this, url);
    };
    ChildSvc.prototype = Object.create(BaseApiSvc.prototype);

    ChildSvc.prototype.setParent = function (id) {
        this.url = url.replace("{id}", id);
    }

    return new ChildSvc();
}]);